package com.jsb.laundry.service;

import com.jsb.laundry.model.dto.CouponRecord;
import com.jsb.laundry.model.entity.UserDetail;

import java.util.List;

/**
 *
 */
public interface UserInfoService {

    /**
     * 根据openid查看userId
     * @param openid
     * @return
     */
    String getUserIdByOpenid(String openid);

    /**
     * 根据userId查看openid
     * @param appUserId
     * @return
     */
    String getOpenIdByUserId(String appUserId);

    /**
     * 新人领取 邀请人赠送的优惠券
     * @param couponRecord
     * @return
     */
    int getShareCoupon(CouponRecord couponRecord);

    UserDetail getUserDetailByUserId(String userId);
}
